package tech.runchen.gz5055.oms.common.utils.poi.head;

import cn.hutool.crypto.SecureUtil;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

/**
 * @author zzj
 */
@Data
public class ImportProductExcel {

    @ExcelProperty("商品ID")
    private String productId;

    @ExcelProperty("商品编码")
    private String productCode;

    @ExcelProperty("商品名称")
    private String productName;

    @ExcelProperty("商品图片地址")
    private String productPic;

    @ExcelProperty("规格型号")
    private String model;

    @ExcelProperty("单位")
    private String unit;

    @ExcelProperty("商品类型")
    private String type;

    @ExcelProperty("厂家")
    private String factory;

    @ExcelProperty("价格")
    private String price;

    public String getProductId() {
        return productId + "_" + SecureUtil.md5(model);
    }
}
